Note:- Before executing following steps in your Ubuntu OS, take dump of mysql database, drop all the database. After running following commands re-import earlier exported database

Open terminal and edit /etc/mysql/my.cnf 
               sudo nano /etc/mysql/my.cnf

Underneath the [mysqld] section.add:
                lower_case_table_names = 1

Restart mysql
                sudo /etc/init.d/mysql restart

Then check it here:
                mysqladmin -u root -p variables

                